package cn.yz.fresh.service.impl;

import cn.yz.fresh.dao.ICategoryDAO;
import cn.yz.fresh.pojo.Category;
import cn.yz.fresh.pojo.Grade;
import cn.yz.fresh.service.ICategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Kim昌完 on 2017/8/31.
 */
@Service
public class CategoryServiceImpl implements ICategoryService{

    private ICategoryDAO categoryDAOImpl;
    @Override
    public List<Category> queryAll(Grade grade) {
        return categoryDAOImpl.queryAllCategory(grade);
    }

    public ICategoryDAO getCategoryDAOImpl() {
        return categoryDAOImpl;
    }

    public void setCategoryDAOImpl(ICategoryDAO categoryDAOImpl) {
        this.categoryDAOImpl = categoryDAOImpl;
    }
}
